from lib.data.girl_names import rand_name
from lib.data.jobs import joblist
from random import randint, choice

class Girly:
	def __init__(self):
		self.name = rand_name()
		self.health = randint(0, 100)
		self.fatigue = randint(0, 100)
		self.morale  = randint(0, 100)
		self.jobs  = [ choice(joblist).name for i in range(4) ]

	def __str__(self):
		buff = "{0:14s}: {1:3d} {2:3d} {3:3d} {4:12s} {5:12s} {6:12s} {7:12s} "
		return buff.format(
			self.name, self.health, self.fatigue, self.morale,
			self.morning, self.afternoon, self.evening, self.night,
		)


	@property
	def morning(self):      return self.jobs[0]
	@property
	def afternoon(self):    return self.jobs[1]
	@property
	def evening(self):      return self.jobs[2]
	@property
	def night(self):        return self.jobs[3]

test_girls = [ Girly() for i in range(100) ]

if __name__ == "__main__":
	for g in test_girls:
		print g

